package com.sundi.ecsystem.service.impl;

import com.sundi.eccommon.vo.MenuVo;
import com.sundi.ecsystem.entity.EcMenu;
import com.sundi.ecsystem.mapper.EcMenuMapper;
import com.sundi.ecsystem.service.IEcMenuService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-25
 */
@Service
public class EcMenuServiceImpl extends ServiceImpl<EcMenuMapper, EcMenu> implements IEcMenuService {

    @Override
    public List<MenuVo> selectMenus() {
        return this.baseMapper.selectMenus();
    }

    @Override
    public List<Integer> selectMenuRoleByRid(Integer rid) {
        return this.baseMapper.selectMenuRoleByRid(rid);
    }
}
